<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Insert title here</title>
<style type="text/css">
a{
    text-decoration: none;
}
table{
  border-collapse: collapse;
  border: 1px solid #008080;
  /* text-align: center; */
}
td{
border: 1px solid #008080;
}
</style>
</head>
<body>

<table border="1" style="width:100%">
    <tr style="background-color: #008080">
       <td style="color:#ffffff"><b>用户信息及权限编辑</b></td>
    </tr>
</table>

<s:if test="roomNum==null">
   <form action='../baseset/roominfo_add'  method="post">
</s:if>
<s:else>
    <form action='../baseset/roominfo_update'  method="post">
</s:else>
<table border="1" style="width:100%">
    <tr> 
         <td style="height:35px;width:20%" align="right">ID：</td>
         <td style="width:30%" ><s:select name="srt_id" list="top" listKey="typeId" listValue="name" value="%{srt_id}"  /></td>
         <td style="width:20%" align="right">姓名：</td>
         <td style="width:30%"><s:textfield name="roomNum"></s:textfield></td>
    </tr>
    <tr> 
         <td style="height:35px" align="right">用户名：</td>
         <td><s:textfield name="price"></s:textfield></td>
         <td align="right">密码：</td>
         <td><s:textfield name="yjprice"></s:textfield></td>
    </tr>
    <tr> 
         <td style="height:35px" align="right">权限级别：</td>
         <td><s:textfield name="badNum"></s:textfield></td>
         <td align="right">可操控权限：</td>
         <td><s:textfield name="telphone" ></s:textfield></td>
    </tr>
    <tr> 
         <td style="height:35px" align="right">权限级别：</td>
         <td><s:select name="state" list="#{'000':'最高权限','001':'可新增与删除',002:'只可看','003':'已禁用'}" listKey="key" listValue="value" value="%{state}" /></td>
         <td align="right">备注：</td>
         <td><s:textfield name="remark"></s:textfield></td>
    </tr>
    <tr> 
         <td style="height:35px" colspan="4" align="center">
             <input type="submit" value="提交" />
             <input type="reset" value="取消" />
         </td>
    </tr>
    <tr> 
         <td style="height:35px;color:red" colspan="4" align="center">
             <span>${empty msg?'': msg}</span>
         </td>
    </tr>
</table>
</form>
</body>
</html>